Measurement of critical airway closing pressure